package com.ruoyi.cngj.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻动态对象 cngj_news
 * 
 * @author yuexl
 * @date 2024-06-27
 */
public class CngjNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻动态id */
    private String id;

    /** 动态主图 */
    @Excel(name = "动态主图")
    private String newsImg;

    /** 标题 */
    @Excel(name = "标题")
    private String newsTitle;

    /** 副标题 */
    @Excel(name = "副标题")
    private String newsSubtitle;

    /** 排序 数字自增 倒叙 */
    @Excel(name = "排序 数字自增 倒叙")
    private Integer newsSort;

    /** 状态 1启用 0禁用 */
    @Excel(name = "状态 1启用 0禁用")
    private String newsState;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newsTime;

    /** 跳转链接 */
    @Excel(name = "跳转链接")
    private String newsLink;

    private String newsImgPhone;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setNewsImg(String newsImg) 
    {
        this.newsImg = newsImg;
    }

    public String getNewsImg() 
    {
        return newsImg;
    }
    public void setNewsTitle(String newsTitle) 
    {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() 
    {
        return newsTitle;
    }
    public void setNewsSubtitle(String newsSubtitle) 
    {
        this.newsSubtitle = newsSubtitle;
    }

    public String getNewsSubtitle() 
    {
        return newsSubtitle;
    }
    public void setNewsSort(Integer newsSort) 
    {
        this.newsSort = newsSort;
    }

    public Integer getNewsSort() 
    {
        return newsSort;
    }
    public void setNewsState(String newsState) 
    {
        this.newsState = newsState;
    }

    public String getNewsState() 
    {
        return newsState;
    }
    public void setNewsTime(Date newsTime) 
    {
        this.newsTime = newsTime;
    }

    public Date getNewsTime() 
    {
        return newsTime;
    }
    public void setNewsLink(String newsLink) 
    {
        this.newsLink = newsLink;
    }

    public String getNewsLink() 
    {
        return newsLink;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("newsImg", getNewsImg())
            .append("newsTitle", getNewsTitle())
            .append("newsSubtitle", getNewsSubtitle())
            .append("newsSort", getNewsSort())
            .append("newsState", getNewsState())
            .append("newsTime", getNewsTime())
            .append("newsLink", getNewsLink())
            .toString();
    }

    public String getNewsImgPhone() {
        return newsImgPhone;
    }

    public void setNewsImgPhone(String newsImgPhone) {
        this.newsImgPhone = newsImgPhone;
    }
}
